//
//  JBWRevisePassWordViewController.m
//  JBWDSK
//
//  Created by 崔志伟 on 2018/7/30.
//  Copyright © 2018年 崔志伟. All rights reserved.
//

#import "JBWRevisePassWordViewController.h"
#import "JBWInputNewPassWordViewController.h"

@interface JBWRevisePassWordViewController ()
@property (nonatomic,strong) JBWPlaceholderUITextField *passwordTextField  ;

@end

@implementation JBWRevisePassWordViewController

- (void)setupsubView {
    self.passwordTextField = [[JBWPlaceholderUITextField alloc]initWithFrame:CGRectMake(15, 20, self.contenView.frame.size.width-30, 30)];
    self.passwordTextField.textColor = [UIColor whiteColor];
    self.passwordTextField.font = [UIFont systemFontOfSize:15];
    self.passwordTextField.placeholder = @"请输入原始密码";
    [self.contenView addSubview:self.passwordTextField];
    UIView *lineView = [[UIView alloc]initWithFrame:CGRectMake(15, 50, self.contenView.frame.size.width-30, 1)];
    lineView.backgroundColor = [UIColor grayColor];
    [self.contenView addSubview:lineView];
    UIButton *nextBtn = [[UIButton alloc]initWithFrame:CGRectMake(15, 65, self.contenView.frame.size.width-30, 40)];
    nextBtn.backgroundColor = [UIColor orangeColor];
    [nextBtn setTitle:@"下一步" forState:UIControlStateNormal];
    [nextBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    nextBtn.titleLabel.font = [UIFont systemFontOfSize:15];
    nextBtn.layer.cornerRadius = 5;
    nextBtn.layer.masksToBounds = YES;
    [nextBtn addTarget:self action:@selector(nextBtnAction) forControlEvents:UIControlEventTouchUpInside];
    [self.contenView addSubview:nextBtn];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.mainNavView.backTitle = @"修改密码";
    [self setupsubView];
}


- (void)nextBtnAction{
    JBWInputNewPassWordViewController *inputNewPassWordVC = [[JBWInputNewPassWordViewController alloc]init];
    [self.navigationController pushViewController:inputNewPassWordVC animated:NO];
    
}


@end
